package com.agent.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Transient;
import java.util.Date;


@Data
@ExcelTarget("repaireInfo")
public class RepaireInfo {
    private Long id;
    @Excel(name = "选项",width = 15,orderNum = "5")
    private String machineType;  // 01:电脑  02:电话
    private String workOrderId;
    private String creator;
    private String creatorPhone;
    @Excel(name = "备注" ,width = 40,orderNum = "12")
    private String description;
    @Excel(name = "地点",width = 20,orderNum = "3")
    private String address; // 01:兆丰  02:科汇 03：百丽
    @Excel(name = "状态",width = 25,orderNum = "7")
    private String status; // 01:调配 02:已接单 03:服务中 04:结束服务
    @Excel(name = "负责工程师",width = 15,orderNum = "8")
    private String currentName;
    private String currentId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone="GMT+8")
    @Excel(name = "创建时间", exportFormat="MM-dd", width = 30, orderNum = "9")
    private Date createTime;
    @Excel(name = "来电号码",width = 15,orderNum = "0")
    private String createMobile;
    private String createTimeTmp;
    private String source;// 工单来源（1:电话报修 2:邮件报修3:微信报修）
    private String processSpecification ;//维修处理说明
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone="GMT+8")
    @Excel(name = "开始时间",exportFormat="MM-dd HH:mm" ,width = 30,orderNum = "10")
    private Date beginProcessTime;//开始处理时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone="GMT+8")
    @Excel(name = "结束时间",exportFormat="MM-dd HH:mm" ,width = 30,orderNum = "11")
    private Date endProcessTime;//结束处理时间

    private String allocationer; //调配者
    private String otherAddress;
    private String callerDeptId;
    @Transient
    @Excel(name = "部门",width = 30,orderNum = "2")
    private String callerDeptName;
    private String lastRecordId;
    @Excel(name = "报修人",width = 15,orderNum = "1")
    private String creatorName;
    @Excel(name = "判定常用",width = 30,orderNum = "6")
    private String repaireSubject;
    private String callerCompanyName;
    @Excel(name = "维修时间",width = 25,orderNum = "4")
    private String expectTime;
    private String picAddress;
    private String floor;

}
